GBML manual / Constants

EASE_SINE_IN_OUT

Starts slowly, is fastest in the middle, and slows down again to arrive - gentle at both ends.

Syntax

EASE_SINE_IN_OUT: constant

Description

A gentle "in out" curve for tween and tween_to: slow at the start, fastest in the middle, slow again at the end. After a quarter of the time it is 15% of the way there, after half exactly half.

Example

tween_to(x, 200, 60, EASE_SINE_IN_OUT);

The walker sets off gently, cruises through the middle and settles in softly. A good all-round choice for moving something from one place to another.

See also: tweentween_totween_from_to